package com.fivefu.core.hillstone.dto.request;

import com.fivefu.base.common.utils.str.StrUtils;

public class EquipmentTntercomDto {

    //编码格式",required = true)
    private String encodeType;

    //采样位数",required = true)
    private String bits;

    //采样率",required = true)
    private String sampleRate;

    //url类型")
    private String urlType;

    //有效时间",required = true)
    private String duration;


    public String getEncodeType() {
        return encodeType;
    }

    public void setEncodeType(String encodeType) {
        this.encodeType = encodeType;
    }

    public String getBits() {
        return bits;
    }

    public void setBits(String bits) {
        this.bits = bits;
    }

    public String getSampleRate() {
        return sampleRate;
    }

    public void setSampleRate(String sampleRate) {
        this.sampleRate = sampleRate;
    }

    public String getUrlType() {
        return urlType;
    }

    public void setUrlType(String urlType) {
        this.urlType = urlType;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getParam() {
        return  "?encodeType=" + encodeType + "&bits=" + bits + "&sampleRate=" + sampleRate
                + "&urlType=" + StrUtils.isCheckNull(urlType) + "&duration=" + duration;
    }
}
